import request from '@/utils/http';

// 新增
export function save(data) {
	return request({
		url: '/anchor/platform/manager/tdBanner/save',
		method: 'post',
		data
	});
}
// 显示/隐藏banner
export function showOrDisabled(params) {
	return request({
		url: '/anchor/platform/manager/tdBanner/isShow',
		method: 'get',
		params
	});
}
// 详情
export function getOne(params) {
	return request({
		url: '/anchor/platform/manager/tdBanner/getOne',
		method: 'get',
		params
	});
}
// 分页查询
export function findByPage(params) {
	return request({
		url: '/anchor/platform/manager/tdBanner/findByPage',
		method: 'get',
		params
	});
}
// 文件上传
export function upload(data) {
	return request({
		url: '/anchor/platform/anchors/common/upload',
		method: 'post',
		data
	});
}
